BenSelect Documentation
How to get century code from DOB
Send Feedback
JScript Examples > JScript for General Use > How to get century code from DOB

Glossary Item Box

To only display the century code from a birthday - for example, either 19 or 20 - depending on the date of birth:

1960 = 19, 2009 = 20
Field = DOB

Event.Value = Event.Value.Year.toString().substring(0, 2);

©2024. All Rights Reserved.